<div class="controls controls-top">
<?php

if ( $oRumor->isNewRecord )
{
  $sCurrentAction = 'Добавление';
}
else
{
  $sCurrentAction = 'Редактирование';
}

$this->widget('application.components.BreadCrumb', array
(
  'crumbs' => array
  (
      array('name' => 'Слухи', 'url' => array('/admin/rumors')),
      array('name' => $sCurrentAction)
  )
));
?>
</div>

<?php if ( $oRumor->hasErrors() ) : ?>
<div class="error">
    <?= CHtml::errorSummary($oRumor); ?>
</div>
<br />
<?php endif; ?>

<div class="col_8 left">
    <form class="form" action="" method="post">
        <div>
            <label for="news-title">Заголовок</label>
            <input id="news-title" type="text" name="Rumor[rumor_title]" value="<?= $oRumor->rumor_title; ?>" class="width_8" />
        </div>

        <div>
            <label for="news-text">Содержимое</label>
            <?php $this->widget('ext.fckeditor.FCKEditorWidget', array(
              "model"=>$oRumor,
              "attribute"=>'rumor_text',
              "height"=>'400px',
              "width"=>'100%',
              //"toolbarSet"=>'Basic',
              "fckeditor"=>Yii::app()->themeManager->basePath."/default/fckeditor/fckeditor.php",
              "fckBasePath"=>Yii::app()->themeManager->baseUrl."/default/fckeditor/",
              "config" => array()
            )); ?>
        </div>

        <div>
            <input id="news-active" type="checkbox" name="Rumor[rumor_active]" value="" class="width_8 inline" <?php if ( $oRumor->rumor_active ) : ?>checked="checked"<?php endif; ?> />
            <label for="news-active" class="inline">Активная</label>
        </div>

        <div class="controls">
            <button id="form-submit-button" type="submit" class="submit">Сохранить</button>&nbsp;&nbsp;
            <button type="button" class="submit" onclick="location.href='<?= $this->createUrl('/admin/rumors'); ?>'">Отмена</button>
        </div>
    </form>
</div>